#include"rizi.hpp"



#include <iostream>
#include <thread>
#include <chrono>
//#include "Logger.hpp" // 替换为实际头文件路径

int main() {
    Logger logger;
    
    // 测试1：控制台日志策略
    logger.EnableConsoleLogStrategy();
    logger(LogLevel::INFO, "main.cpp", __LINE__) 
        << "This is an info message to console";
    
    logger(LogLevel::WARNING, "main.cpp", __LINE__) 
        << "This is a warning with value: " << 42;
    
    // 测试2：文件日志策略
    logger.EnableFileLogStrategy();
    logger(LogLevel::ERROR, "main.cpp", __LINE__) 
        << "This is an error message to file";
    
 
    
    
    return 0;
}
// int main()
// {
    





// //   std::unique_ptr<LogStrategy> strategy = std::make_unique<ConsoleLogStrategy>(); // C++14
//     //  std::unique_ptr<LogStrategy> strategy = std::make_unique<FileLogStrategy>(); // C++14
//     //  strategy->SyncLog("hello log!");
// //     logger(LogLevel::DEBUG, "main.cc", 10) << "hello world," << 3.14 << " " << 8899 << "aaaa";
// //     logger(LogLevel::DEBUG, "main.cc", 10) << "hello world";
// //     logger(LogLevel::DEBUG, "main.cc", 10) << "hello world";
// //     logger(LogLevel::DEBUG, "main.cc", 10) << "hello world";
// //     logger(LogLevel::DEBUG, "main.cc", 10) << "hello world";
// //     logger(LogLevel::DEBUG, "main.cc", 10) << "hello world";
// //     logger(LogLevel::DEBUG, "main.cc", 10) << "hello world";
//     return 0;
// }